package com.ftwj.demo.config.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("demoTask")
public class DemoTask {
	
	@Autowired
	CronTaskRegistrar cronTaskRegistrar;

    public void taskWithParams(String param1, Integer param2) {
        System.out.println("这是有参示例任务【参数一：" + param1 +"，参数二："+ param2+"】");
    }

    public void taskNoParams() {
        System.out.println("这是无参示例任务");
    }
}